def run(params:list[str]):
    from speech_recognition.audio import AudioData
    from faster_whisper import WhisperModel
    from ApiTools import apiTools,apiBase

    try:
        mp3 = apiBase.argv(1,"/data/bzmwork/softrobot/llm/codeqwen-7b/txt/audio.mp3")
        path=apiTools.dir + "/huggingface/hub/faster-whisper-large-v3/snapshots/model/"
        whisper_model  = WhisperModel(path, device="auto", local_files_only=True)
        segments, info = whisper_model.transcribe(mp3, beam_size=5,vad_filter=True)
        for segment in segments:
            print("[%.2fs -> %.2fs] %s" % (segment.start, segment.end, segment.text))
    except Exception as e:
        print(f"llm调用错误:{e}")
    #    apiBase.save_log("生成错误",f"{e}")
    finally:
        whisper_model=None
        apiBase.close()
